﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TaxBusiness.Model;
using TaxBusiness.DAL;

namespace TaxBusiness.BLL
{
    public class PayMethodBLL
    {
        public List<Model.PayMethod> GetList()
        {
            List<PayMethod> mehtodList = new List<PayMethod>();
            PayMethodDB methoddb = new PayMethodDB();
            mehtodList = methoddb.GetList();
            return mehtodList;
        }

        public int Insert(PayMethod method)
        {
            PayMethodDB methoddb = new PayMethodDB();
            return methoddb.Insert(method);
        }

        public int delete(int id)
        {
            PayMethodDB methoddb = new PayMethodDB();
            return methoddb.Delete(id);
        }

        public string GetName(int id)
        {
            PayMethodDB methoddb = new PayMethodDB();
            return methoddb.GetName(id);
        }
    }
}
